package com.hotel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName ht_room
 */
@TableName(value ="ht_room")
@Data
public class HtRoom implements Serializable {
    /**
     * 客房编号
     */
    @TableId
    private Long roomNo;

    /**
     * 房间图片
     */
    private String photo;

    /**
     * 房间类型编号
     */
    private Long roomTypeNo;

    /**
     * 客房楼层编号
     */
    private Long floorNo;

    /**
     * 客房状态,空房、预定、入住
     */
    private String statusNo;

    /**
     * 标准价格，不同类型，不同楼层价格可能不同
     */
    private Double standardPrice;

    /**
     * 折后价，客户可修改
     */
    private Double discountedPrice;

    /**
     * 普通会员价，客户可修改
     */
    private Double memberPrice;

    /**
     * vip会员价，客户可修改
     */
    private Double vipPrice;

    /**
     * 备注
     */
    private String roomRemark;

    /**
     * 是否启用，1：启用，0：停用
     */
    private Integer roomFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HtRoom other = (HtRoom) that;
        return (this.getRoomNo() == null ? other.getRoomNo() == null : this.getRoomNo().equals(other.getRoomNo()))
            && (this.getPhoto() == null ? other.getPhoto() == null : this.getPhoto().equals(other.getPhoto()))
            && (this.getRoomTypeNo() == null ? other.getRoomTypeNo() == null : this.getRoomTypeNo().equals(other.getRoomTypeNo()))
            && (this.getFloorNo() == null ? other.getFloorNo() == null : this.getFloorNo().equals(other.getFloorNo()))
            && (this.getStatusNo() == null ? other.getStatusNo() == null : this.getStatusNo().equals(other.getStatusNo()))
            && (this.getStandardPrice() == null ? other.getStandardPrice() == null : this.getStandardPrice().equals(other.getStandardPrice()))
            && (this.getDiscountedPrice() == null ? other.getDiscountedPrice() == null : this.getDiscountedPrice().equals(other.getDiscountedPrice()))
            && (this.getMemberPrice() == null ? other.getMemberPrice() == null : this.getMemberPrice().equals(other.getMemberPrice()))
            && (this.getVipPrice() == null ? other.getVipPrice() == null : this.getVipPrice().equals(other.getVipPrice()))
            && (this.getRoomRemark() == null ? other.getRoomRemark() == null : this.getRoomRemark().equals(other.getRoomRemark()))
            && (this.getRoomFlag() == null ? other.getRoomFlag() == null : this.getRoomFlag().equals(other.getRoomFlag()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRoomNo() == null) ? 0 : getRoomNo().hashCode());
        result = prime * result + ((getPhoto() == null) ? 0 : getPhoto().hashCode());
        result = prime * result + ((getRoomTypeNo() == null) ? 0 : getRoomTypeNo().hashCode());
        result = prime * result + ((getFloorNo() == null) ? 0 : getFloorNo().hashCode());
        result = prime * result + ((getStatusNo() == null) ? 0 : getStatusNo().hashCode());
        result = prime * result + ((getStandardPrice() == null) ? 0 : getStandardPrice().hashCode());
        result = prime * result + ((getDiscountedPrice() == null) ? 0 : getDiscountedPrice().hashCode());
        result = prime * result + ((getMemberPrice() == null) ? 0 : getMemberPrice().hashCode());
        result = prime * result + ((getVipPrice() == null) ? 0 : getVipPrice().hashCode());
        result = prime * result + ((getRoomRemark() == null) ? 0 : getRoomRemark().hashCode());
        result = prime * result + ((getRoomFlag() == null) ? 0 : getRoomFlag().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", roomNo=").append(roomNo);
        sb.append(", photo=").append(photo);
        sb.append(", roomTypeNo=").append(roomTypeNo);
        sb.append(", floorNo=").append(floorNo);
        sb.append(", statusNo=").append(statusNo);
        sb.append(", standardPrice=").append(standardPrice);
        sb.append(", discountedPrice=").append(discountedPrice);
        sb.append(", memberPrice=").append(memberPrice);
        sb.append(", vipPrice=").append(vipPrice);
        sb.append(", roomRemark=").append(roomRemark);
        sb.append(", roomFlag=").append(roomFlag);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}